<!--注册审核·已处理-->

#include('head.html')
<style>
		header a{
			height: 44px;
			margin-bottom: 1px;
		}
		header .am-active a{
			color: #f37b1d !important;
		}
	</style>
</head>
#if(page>audits.totalPages)
<script>
	window.location.href="/backstage/audit2?con=${search}&page=${audits.totalPages}";
</script>
#end
<body>
<div class="admin-content-body">
	<div class="am-cf am-padding am-padding-bottom-0">
		<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">注册审核</strong><small></small></div>
	</div>
	<header class="am-topbar" style="background:none;margin-top: -50px;border-color:#eee;">
		<button type="button" class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

		<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
			<ul class="am-nav am-nav-pills am-topbar-nav" style="margin-left:20px;font-size:13px;">
				<li><a href="audit">待处理</a></li>
				<li  class="am-active"><a>已处理</a></li>
			</ul>
		</div>
	</header>


	<div class="am-g">
		<div class="am-u-sm-12 am-u-md-6">
			<div class="am-btn-toolbar">
				<div class="am-btn-group am-btn-group-xs">
					#if(search=="")
					<button type="button" class="am-btn am-btn-default setting"><span class="am-icon-cog"></span> 设置</button>
					#else
					<button type="button" class="am-btn am-btn-default" onclick="location.href='/backstage/audit2'">
						<span class="am-icon-chevron-left"></span> 返回
					</button>
					#end
				</div>
			</div>
		</div>
		<div class="am-u-sm-12 am-u-md-3">

		</div>
		<div class="am-u-sm-12 am-u-md-3">
			<div class="am-input-group am-input-group-sm">
				<input type="text" style="color:blue;" placeholder="请输入用户名" id="con" value="${search}" class="am-form-field">
				<span class="am-input-group-btn">
            <button type="button" class="am-btn am-btn-default search" type="button">搜索</button>
         		 </span>
			</div>
		</div>
	</div>
				<div class="am-g">
					<div class="am-u-sm-12">
						<form class="am-form">
							<table class="am-table am-table-striped am-table-hover table-main">
								<thead>
								<tr>
									<th class="table-check am-hide-sm-only"><input class="chooseall" type="checkbox"></th>
									<th class="table-id">ID</th>
									<th class="table-title">用户名</th>
									<th class="table-title am-hide-sm-only">邮箱</th>
									<th class="table-date am-hide-sm-only">审核人</th>
									<th class="table-date">审核结果</th>
									<th class="table-date am-hide-sm-only">审核时间</th>
								</tr>
								</thead>
								<tbody>
								#for(Checklog checklog : audits.getRows())
								<tr>
									<td class="am-hide-sm-only"><input type="checkbox"></td>
									<td>${checklog.c_id}</td>
									<td>
										<a href="#">${checklog.c_member}</a>
									</td>
									<td class="am-hide-sm-only">${checklog.c_email}</td>
									<td class="am-hide-sm-only">
										<a href="#">${checklog.c_admin}</a>
									</td>
									#if(checklog.c_result==1)
									<td class="am-text-secondary"><span class="am-icon-check"></span> 通过</td>
									#else
									<td class="am-text-danger"><span class="am-icon-close"></span> 拒绝</td>
									#end
									<td class="am-hide-sm-only">${checklog.c_time.substring(0,19)}</td>
								#end
								#if(audits.getTotalRows()==0)
								<tr><td class="am-hide-sm-only"></td><td></td><td></td><td></td><td>暂无记录！</td><td></td><td class="am-hide-sm-only"></td></tr>
								#end
							</tbody>
						</table>
						<div class="am-cf">
							共 ${audits.getTotalRows()} 条记录
                            #if(search!="")(查询结果）
                            #end
							<div class="am-fr">
								<ul class="am-pagination">
									<li class="${audits.isHasPrevPage()  ? '':'am-disabled'}">
										<a href="/backstage/audit2?con=${search}&page=${audits.getPrevPage()}">«</a>
									</li>
									#set(j=audits.getPageNum()-(audits.getPageNum()%5!=0?audits.getPageNum()%5:5)+1)
									#for(int i : range(j, (j+4) > audits.totalPages ? audits.totalPages : j+4))
									<li class="${i == audits.pageNum  ? 'am-active':''}">
										<a href="/backstage/audit2?con=${search}&page=${i}">${i}</a>
									</li>
									#end
									<li class="${audits.isHasNextPage()  ? '':'am-disabled'}">
										<a href="/backstage/audit2?con=${search}&page=${audits.getNextPage()}">»</a>
									</li>
								</ul>
							</div>
						</div>
						<hr>
					</form>
				</div>
			</div>
		</div>
		#include('/backstage/footer.html')
		<script type="text/javascript" src="/static/js/backstage/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="/static/js/backstage/amazeui.min.js"></script>
		<script type="text/javascript" src="/static/js/backstage/choose.js" ></script>
		<script type="text/javascript" src="/static/js/backstage/plugs.js" ></script>
		<script>
		$(function() {

			$(".setting").click(function() {
					$.jq_Panel({
						title: "注册设置",
						iframeWidth: 400,
						iframeHeight: 200,
						url: " regSetting"
					});
			});

			$(".search").click(function(){
			    window.location.href="/backstage/audit2?con="+$("#con").val();
			});
		});
		</script>
	</body>
</html>